import type { ProfileDetail, ProfileParams } from '@/types/member'
import { http } from '@/utils/http'
/*获取热门推荐数据(需要对接口进行封装，url动态获取) */
export const getMemberProfileAPI = () => {
  return http<ProfileDetail>({
    method: 'GET',
    url: '/member/profile',
  })
}
// 修改个人信息
export const putMemberProfileAPI = (data: ProfileParams) => {
  return http<ProfileParams>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
